package ExamLab.Test3;

interface II {
}

class AAAA {
}

class EEEE {
}

final class BB extends AAAA {
}

class CC implements II {
}

public class DD extends CC {
	public static void main(String args[]) {
		AAAA a = new AAAA();
		EEEE e = new EEEE();
		
		CC c = new CC();
		II i = (II) a;
		II ie = (II) e;
		
		//D d = (A) c; // Falha de compilacao
		//i = (CC) d;
		Runnable rt = (Runnable) i;
		Thread tt = (Thread) (Runnable) i;
	}
}